<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>天禾人才</title>
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="msapplication-tap-highlight" content="no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">

	<link rel="stylesheet" type="text/css" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/registered.css">
	
</head>

<body>
	<div class="header">
		<div class="top">
			<div class="sn-nav-back">
			</div>
			<div class="sn-nav-title of">个人查询</div>
		</div>
	</div>
	<div class="container">
		<div class="content">
			<div class="login">
				<ul>
					<li>
						<input id="realname" name="realname" placeholder="请输入姓名" type="text" value="">
					</li>
					<li>
						<input id="idNo" name="idNo" placeholder="请输入身份证号码" type="text" value="">
					</li>					
					<li>
						<h3><a href="javascript:;" id="submit">查询</a></h3>
					</li>
				</ul>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/base.js"></script>
<script type="text/javascript">

$("#submit").click(function(){
	var realname=$("#realname").val();
	var idNo=$("#idNo").val();
	
	$.ajax({
		type: "POST",
		url: "/personnel/search",
		data:{
			"realname" : realname,
			"idNo" : idNo
		},
		dataType:"json",
		async:false,
		success: function(data){
			if(data.code == 0){
				var entity=data.data[0];
				localStorage.setItem("personnel_entity",entity);
				window.location.href="talent_pool.html";
			}else{
				alert(data.msg);
				return false;
			}
		}
	});
	
})

</script>

</html>